//
//  SortDetailedTableViewCell.m
//  MountEverestFM
//
//  Created by dllo on 15/10/30.
//  Copyright © 2015年 chenn. All rights reserved.
//

#import "SortDetailedTableViewCell.h"

@implementation SortDetailedTableViewCell

-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self=[super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        self.lable1=[[UILabel alloc]init];
        [self.contentView addSubview:self.lable1];
        self.lable2=[[UILabel alloc]init];
        [self.contentView addSubview:self.lable2];
        self.imageV3=[[UIImageView alloc]init];
        [self.contentView addSubview:self.imageV3];
        self.imageV=[[UIImageView alloc]init];
        [self.contentView addSubview:self.imageV];
        
    }
    return self;
}

-(void)layoutSubviews
{
    [super layoutSubviews];
    
    self.imageV.frame=CGRectMake(FM_Screen_Pts_Width*20, FM_Screen_Pts_Height*10, FM_Screen_Pts_Width*40, FM_Screen_Pts_Height*40);
    
    self.lable1.frame=CGRectMake(FM_Screen_Pts_Width*70,  FM_Screen_Pts_Height*10, FM_Screen_Width/3*2, FM_Screen_Pts_Height*40/2);
    self.lable2.frame=CGRectMake(FM_Screen_Pts_Width*70,  FM_Screen_Pts_Height*10+FM_Screen_Pts_Height*40/2, FM_Screen_Width/3*2, FM_Screen_Pts_Height*40/2);
    self.lable2.font=[UIFont systemFontOfSize:13];
    self.lable2.alpha=0.5;
    
    
    
    self.imageV3.frame=CGRectMake(FM_Screen_Width-FM_Screen_Pts_Width*25,  FM_Screen_Pts_Height*25, FM_Screen_Pts_Width*10, FM_Screen_Pts_Height*10);
    
    
}


- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];
    if (selected) {
        self.backgroundColor = Cell_Selected_Color;
    }else{
        self.backgroundColor = [UIColor whiteColor];
    }
}






/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
